public class demo2 {
    public static void main(String[] args) {
        int divided = 123;
        int vivisor = 10;
        int count = 0;
        while (divided >= vivisor){
            divided -= vivisor;
            count++;
        }
        System.out.println("商为：" + count);
        System.out.println("余数：" + divided);
    }
}
